package com.andia.app.browser;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.MenuItem;
import org.eclipse.swt.widgets.Shell;

public class MenuBarGo extends MenuBarBrowser {

	public MenuBarGo(Shell shell) {
		this.shell = shell;
		bar = new Menu(shell, SWT.BAR);
	}

	@Override
	public Menu createMenuItem() {
		bar = shell.getMenuBar();
		Menu menu = new Menu(bar);

		// Go
		item = new MenuItem(menu, SWT.PUSH);
		item.setText("Go..\t\t Ctrl+G");
		item.setAccelerator(SWT.ALT + 'G');

		return menu;
	}

}
